import time


from com.lucksoft.fixedassets.login import assetsLogin
from com.lucksoft.fixedassets.param import assetPage


# 固定资产台账增删改查
def searchAssets():
    driver = assetsLogin.login('http://10.10.10.50:32060/', 'gzadmin', 'Gdjt@2021')

    # 进入菜单
    assetPage.inMenu(driver)

    # 表头排序
    # 审批状态排序
    assetPage.clickState(driver)

    # 资产编码排序
    assetPage.clickCode(driver)

    # 表头资产编码搜索
    assetPage.searchCode(driver)

    # 清空搜索数据
    assetPage.clearSearch(driver)

    # 表头名称资产名称
    assetPage.searchAssetsName(driver)

    # 清空搜索数据
    assetPage.clearSearch(driver)

    # 选择审批状态
    assetPage.selectState(driver)


if __name__ == '__main__':
    searchAssets()
    time.sleep(3)
